<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Maven - </title>
    <style type="text/css" media="all">
      @import url("./css/maven-base.css");
      @import url("./css/maven-theme.css");
      @import url("./css/site.css");
    </style>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
          </head>
  <body class="composite">
    <div id="banner">
                  <a href="http://maven.apache.org/" id="bannerLeft">
    
                                    <img src="http://maven.apache.org/images/apache-maven-project.png" alt="" />
    
            </a>
                          <span id="bannerRight">
    
                                    <img src="http://maven.apache.org/images/maven-small.gif" alt="" />
    
            </span>
            <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2009-11-21
                      </div>
            <div class="xright">            <a href="http://www.apache.org/" class="externalLink">Apache</a>
            |
                <a href="http://maven.apache.org/" class="externalLink">Maven 1.0</a>
            |
                <a href="http://maven.apache.org/maven2/" class="externalLink">Maven 2</a>
            
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>Main</h5>
            <ul>
              
    <li class="none">
              <strong>5 Steps to create a Calm-enabled Google Code project</strong>
        </li>
              
    <li class="none">
                    <a href="usage.html">Usage</a>
          </li>
              
    <li class="none">
                    <a href="properties.html">Properties</a>
          </li>
              
    <li class="none">
                    <a href="configuration.html">Configuration</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="project-info.html">Project Information</a>
                </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>5 Steps to create Calm-enabled Google Code project</h2>
<p>1. <a href="http://code.google.com/hosting/createProject" class="externalLink">Create</a> a Google Code project; by default maven-calm uses svn as code repository, but you can use also git and simply override the POM property 'maven.release.scm.provider' (not tested yet :-\)</p>
<p>2. Create the following folder structure:</p>
<div class="source"><pre>+ svn
  + trunk
  + m2
    + releases
    + snapshots
    + site</pre>
</div>
<p>3. Create your calm-enabled POM in /svn/trunk using the following parent (current maven-calm version is 1.0-beta-21):</p>
<div class="source"><pre>        &lt;groupId&gt;your project's groupId&lt;/groupId&gt;
        &lt;artifactId&gt;your Google Project name&lt;/artifactId&gt;
        &lt;name&gt;your name&lt;/name&gt;
        &lt;version&gt;your project's version-SNAPSHOT&lt;/version&gt;

        &lt;parent&gt;
                &lt;groupId&gt;com.sourcesense.maven&lt;/groupId&gt;
                &lt;artifactId&gt;maven-calm&lt;/artifactId&gt;
                &lt;version&gt;[maven_calm_version]&lt;/version&gt;
        &lt;/parent&gt;

        &lt;repositories&gt;
                ...
                &lt;repository&gt;
                        &lt;id&gt;maven-calm-releases&lt;/id&gt;
                        &lt;url&gt;http://maven-calm.googlecode.com/svn/m2/releases&lt;/url&gt;
                &lt;/repository&gt;
        &lt;/repositories&gt;</pre>
</div>
<p>4. Define the following SCM configuration</p>
<div class="source"><pre>        &lt;scm&gt;
                &lt;connection&gt;${maven.release.scm.connection}&lt;/connection&gt;
                &lt;developerConnection&gt;${maven.release.scm.developerConnection}&lt;/developerConnection&gt;
                &lt;url&gt;${maven.release.scm.url}&lt;/url&gt;
        &lt;/scm&gt;</pre>
</div>
<p>5. Configure your build by overriding properties; some examples; see <a href="properties.html">properties</a> page</p>
<div class="source"><pre>        &lt;properties&gt;
                &lt;maven.release.scm.url&gt;https://${artifactId}.googlecode.com/svn&lt;/maven.release.scm.url&gt;
                ...
                &lt;plugin.*.version&gt;1.2.3&lt;/plugin.*.version&gt;
                ...
                &lt;maven.deploy.repository.*.id&gt;repository * id&lt;/maven.deploy.repository.*.id&gt;
                &lt;maven.deploy.repository.*.url&gt;repository * url&lt;/maven.deploy.repository.*.url&gt;
                ...
        &lt;/properties&gt;</pre>
</div>
<p>That's it! you can now <a href="usage.html">use</a> it ;-)</p>
<p>Need an example for a different configuration? Look at the <a href="http://repository.sourcesense.com/nexus/content/groups/public/com/sourcesense/maven/sourcesense-parent/1.0.24/" class="externalLink">latest sourcesense-parent POM</a></p>
<p>If you need some tips on how to properly configure your SVN client, see the <a href="configuration.html">configuration</a> page</p>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2009
    
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
